package com.data.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.NoticeVo;
import com.data.core.entry.Notice;



/**
* @version: V1.0
* @author: szw
* @className: NoticeService
* @packageName: NoticeService
* @description: 公告接口
* @data: 2021-1-21
**/ 
public interface NoticeService extends IService<Notice> {

    /**
     * 新增公告
     * @param noticeVo
     * @return int
     */
    int save(NoticeVo noticeVo)throws Exception;


    /**
     * 更新公告
     * @param noticeVo
     * @return int
     */
    int update(NoticeVo noticeVo)throws Exception;

    /**
     * 查询公告
     * @param id
     * @return Problem
     */
    Notice findNoticeById(Long id)throws Exception;

    /**
     * 删除公告
     * @param id
     * @return
     */
    int delete(Long id)throws Exception;

    /**
     * 分页查询公告列表
     * @param page
     * @param noticeVo
     * @return
     * @throws Exception
     */
    IPage<Notice> noticePage(Page<Notice> page, NoticeVo noticeVo)throws Exception;
}
